<?php 
echo CHtml::beginForm(array('Cart/create'));
echo CHtml::textField('Cart[amount]', 1, array('size' => 3));
echo CHtml::hiddenField('Cart[product_id]', $model->id);
echo CHtml::hiddenField('Cart[customer_id]', Yii::app()->user->id);
//echo CHtml::image($this->module->getIconsPath().'/addToCart.jpg');
echo CHtml::submitButton('Thêm vào giỏ hàng');

echo CHtml::endForm();
?>
